/**
 * 挂载到需要多语言的label组件
 */
cc.Class({
    extends: cc.Component,

    properties: {

    },
    onLoad() {
        let label = this.node.getComponent(cc.Label);
        this.updatelanguage(label);
    },
    updatelanguage(lb) {
        let str = lb.string;
        if(cc.sys.language != cc.sys.LANGUAGE_CHINESE){
            lb.string = MyLanguageString[str].en;
        }
    }
});
